package com.iot08.admin.utils;

/**
 * @version 1.0
 * @Description: 缓存key-expire
 * @time: 2020/11/2 16:39
 * @author: Rock
 */
public enum RedisEnum {

    DeviceTotalTime("DeviceTotalTime-", 3600 * 24);

    private String key;

    private int expire;

    RedisEnum() {
    }

    RedisEnum(String key, int expire) {
        this.key = key;
        this.expire = expire;
    }

    RedisEnum(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public int getExpire() {
        return expire;
    }
}
